package com.example.cargetter.controller;


import com.example.cargetter.pojo.WarnFlag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("lightWarn")
public class LightController {

    @GetMapping("/getlightWarn")
    public int getlightWarn() {
        WarnFlag warnFlag = WarnFlag.getInstance();
        return warnFlag.getFlag();
    }
}
